import request from '@/utils/request'
import type { loginData, loginResponseData, userInfoResponseData } from './model/login'

// 登录的接口
export const reqLogin = (data:loginData) => request.post<any,loginResponseData>('/admin/acl/index/login', data)

// 获取用户信息的接口
export const reqInfo = () => request.get<any,userInfoResponseData>('/admin/acl/index/info')

// 退出登录接口
export const reqLogout = ()=>request.post('/admin/acl/index/logout')